<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
	<title>Edit Mode Toggling</title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="../Table.css" />
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1"><tbody>
    <tr><td colspan="3" class="title">Edit Mode Toggling</td></tr>
    
    
    
    <tr><td colspan="3" class="comment">
    	Initialize editor and set the editor to WYSIWYG mode.
    </td></tr>
    <tr>
      <td>open</td>
      <td>SimplePage.html</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>setEditMode</td>
      <td>wysiwyg</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>waitForEditMode</td>
      <td>wysiwyg</td>
      <td>&nbsp;</td>
    </tr>
    
    
    
    <tr><td colspan="3" class="comment">
    	And toggle edit mode...
    </td></tr>
    <tr>
      <td>toggleSourceAndWysiwygMode</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    
    
    
    <tr><td colspan="3" class="comment">
    	Then source editor should be turned on.
    </td></tr>
    <tr>
      <td>verifyStyleDisplay</td>
      <td>css=div.wysiwyg_editor</td>
      <td>none</td>
    </tr>
    <tr>
      <td>verifyStyleDisplay</td>
      <td>css=div.source_editor</td>
      <td>block</td>
    </tr>
    <tr>
      <td>verifyStyleDisplay</td>
      <td>xqEditor</td>
      <td>none</td>
    </tr>



    
    
    
    <tr><td colspan="3" class="comment">
    	And toggle again...
    </td></tr>
    <tr>
      <td>toggleSourceAndWysiwygMode</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    
    
    
    <tr><td colspan="3" class="comment">
    	Then WYSiWYG editor should be turned on.
    </td></tr>
    <tr>
      <td>verifyStyleDisplay</td>
      <td>css=div.wysiwyg_editor</td>
      <td>block</td>
    </tr>
    <tr>
      <td>verifyStyleDisplay</td>
      <td>css=div.source_editor</td>
      <td>none</td>
    </tr>
    <tr>
      <td>verifyStyleDisplay</td>
      <td>xqEditor</td>
      <td>none</td>
    </tr>
</tbody></table>
</body>
</html>